import {
  createRouter,
  createWebHistory,
  createWebHashHistory
} from "vue-router"
import Home from "../views/Home.vue"

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home,
    children: []
  },
  {
    path: "/jiekouceshi",
    name: "jiekouceshi",
    component: () => import("@/views/jiekouceshi.vue")
  },
  {
    path: "/About",
    name: "About",
    component: () => import("@/views/About.vue")
  }
]
const router = createRouter({
  // hash 模式: createWebHashHistory
  // history 模式 : createWebHistory
  // history: createWebHistory(),
  history: createWebHashHistory(),
  routes
})

export default router
